package com.ruoyi.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.education.mapper.EducationInfoMapper;
import com.ruoyi.education.domain.EducationInfo;
import com.ruoyi.education.service.IEducationInfoService;

/**
 * 学历信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-26
 */
@Service
public class EducationInfoServiceImpl implements IEducationInfoService 
{
    @Autowired
    private EducationInfoMapper educationInfoMapper;

    /**
     * 查询学历信息
     * 
     * @param id 学历信息主键
     * @return 学历信息
     */
    @Override
    public EducationInfo selectEducationInfoById(Long id)
    {
        return educationInfoMapper.selectEducationInfoById(id);
    }

    /**
     * 查询学历信息列表
     * 
     * @param educationInfo 学历信息
     * @return 学历信息
     */
    @Override
    public List<EducationInfo> selectEducationInfoList(EducationInfo educationInfo)
    {
        return educationInfoMapper.selectEducationInfoList(educationInfo);
    }

    /**
     * 新增学历信息
     * 
     * @param educationInfo 学历信息
     * @return 结果
     */
    @Override
    public int insertEducationInfo(EducationInfo educationInfo)
    {
        return educationInfoMapper.insertEducationInfo(educationInfo);
    }

    /**
     * 修改学历信息
     * 
     * @param educationInfo 学历信息
     * @return 结果
     */
    @Override
    public int updateEducationInfo(EducationInfo educationInfo)
    {
        return educationInfoMapper.updateEducationInfo(educationInfo);
    }

    /**
     * 批量删除学历信息
     * 
     * @param ids 需要删除的学历信息主键
     * @return 结果
     */
    @Override
    public int deleteEducationInfoByIds(Long[] ids)
    {
        return educationInfoMapper.deleteEducationInfoByIds(ids);
    }

    /**
     * 删除学历信息信息
     * 
     * @param id 学历信息主键
     * @return 结果
     */
    @Override
    public int deleteEducationInfoById(Long id)
    {
        return educationInfoMapper.deleteEducationInfoById(id);
    }
}
